package com.liugui.basicsgrammar2;

import java.util.Scanner;

/**
 * @ClassName: PrintWeek
 * @Author: liugui
 * @Date: 2020-10-21 10:07
 **/
public class PrintWeek {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        System.out.print("请输入:");
        switch (in.nextInt()){
            case 1:
                System.out.println("今天是星期一");
                break;
            case 2:
                System.out.println("今天是星期二");
                break;
            case 3:
                System.out.println("今天是星期三");
                break;
            case 4:
                System.out.println("今天是星期四");
                break;
            case 5:
                System.out.println("今天是星期五");
                break;
            case 6:
                System.out.println("今天是星期六");
                break;
            default:
                System.out.println("今天是星期日");
                break;
        }
    }
}
